/*
 * @创建文件时间: 2021-06-01 22:41:21
 * @Auther: chenkang
 * @最后修改人: chenkang
 * @最后修改时间: 2021-06-06 10:14:14
 * 联系Qq:207007541
 * @文件介绍: 便捷导航接口
 */

import { axios } from '@/utils/request'

export const urlPrefix = '/system/home/navigation/'


export function getList(parameter) {
  return axios({
    url: urlPrefix,
    method: 'get',
    params: parameter
  })
}

export function addObj(parameter) {
  return axios({
    url: urlPrefix,
    method: 'post',
    data: parameter
  })
}

export function deleteObj(id) {
  return axios({
    url: urlPrefix + id + '/',
    method: 'delete'
  })
}

export function updatePartObj (parameter) {
  return axios({
    url: urlPrefix + parameter.id + '/',
    method: 'patch',
    data: parameter
  })
}

export function updateObj(parameter) {
  return axios({
    url: urlPrefix + parameter.id + '/',
    method: 'put',
    data: parameter
  })
}